import fetch from 'utils/fetch';
/**
 * 学校管理
 */
//查询学校列表 
export function pageSchoolAccount(page,rows,provinceId,cityId,areaId,status,orgId) {
    const data = {
        page,
        rows,
        provinceId,
        cityId,
        areaId,
        status,
        orgId,
    };
    return fetch({
        url: 'orgAccount/pageSchoolAccount',
        method: 'post',
        data
    });
  }
//查询经销商列表 
  export function pageOrgAccount(page,rows,provinceId,cityId,areaId,status,orgState,name) {
    const data = {
        page,
        rows,
        provinceId,
        cityId,
        areaId,
        status,
        orgState,
        name
    };
    return fetch({
        url: 'orgAccount/pageOrgAccount',
        method: 'post',
        data
    });
  }
//审核信息
export function auditMessage(id,orgId,orgType) {
    const data = {
        id,
        orgId,
        orgType
    };
    return fetch({
        url: 'orgAccount/auditMessage',
        method: 'post',
        data
    });
  }
// //审核
export function updateStatus(id,result,reason) {
    const data = {
        id,
        result,
        reason
    };
    return fetch({
        url: 'orgAccount/updateStatus',
        method: 'post',
        data
    });
  }
//结果信息
export function auditResult(id,orgId) {
    const data = {
        id,
        orgId
    };
    return fetch({
        url:'orgAccount/auditResult',
        method: 'post',
        data
    });
}
//地区详情
export function address(orgId) {
    const data = {
        orgId
    };
    return fetch({
        url:'orgAccount/address',
        method: 'post',
        data
    });
}
//负责人信息
export function getPeople(orgId) {
    const data = {
        orgId
    };
    return fetch({
        url:'orgAccount/getPeople',
        method: 'post',
        data
    });
}

